package STUDENT.TRANBANGTUNG.day05_23_2016.Bai10;

public class Models {
	public double[] Mark(Objects obj) {
		double[] test = new double[obj.getPoint().length];
		for (int i = 0; i < obj.getAnswersofStudent().length; i++) {
			double dem = 0;
			for (int j = 0; j < obj.getAnswersofStudent()[i].length; j++) {
				if (obj.getAnswersofStudent()[i][j].equals(obj.getResult()[j])) {
					dem++;
					test[i] = dem;
				}
			}
			obj.setPoint(test);
		}
		
		return obj.getPoint();
	}
	
}
